package com.scommunity.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.scommunity.domain.Image;
import io.minio.GetObjectResponse;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface IImageService extends IService<Image>{

    /**
     * 轮播图列表查询
     */
    List<Image> getList();

    /**
     * 添加
     * @param image
     */
    void add(Image image);

    /**
     * 文件上传至文件服务器
     * @param file
     * @return
     */
    String upload(MultipartFile file);

//    void updateByImageId(Image image);

//    void updateByImagePath(String image);

//    GetObjectResponse download(String fileName, HttpServletResponse response);
}
